FROM flink:1.19-java17

ARG appname=
ARG appversion=

ENV APPLICATION_NAME="${appname}" APPLICATION_JAR="${appversion}" FLINK_HOME="/opt/flink"

RUN mkdir -p $FLINK_HOME/usrlib
COPY "maven/lib/monitoring-job-runner.jar" "$FLINK_HOME/usrlib/${jarname}"

EXPOSE 80